package edu.ahut.corejava;


public class ReflectionDemo {
    public static void main(String[] args) {
        Object date = null;
        try {
            date = Class.forName("java.util.Date").newInstance();//XML
            System.out.println(date.toString());
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }

    }
}
